import request from '@/utils/request'

// 查询电子案卷新列表
export function listAnjuan(query) {
  return request({
    url: '/system/eanjuan/list',
    method: 'get',
    params: query
  })
}

// 查询电子案卷新详细
export function getAnjuan(id) {
  return request({
    url: '/system/eanjuan/' + id,
    method: 'get'
  })
}

// 新增电子案卷新
export function addAnjuan(data) {
  return request({
    url: '/system/eanjuan',
    method: 'post',
    data: data
  })
}


// 完整性测试
export function integrityTesting(data) {
  return request({
    url: '/system/eanjuan/integrityTesting',
    method: 'post',
    data: data
  })
}


// 修改电子案卷新
export function updateAnjuan(data) {
  return request({
    url: '/system/eanjuan',
    method: 'put',
    data: data
  })
}

// 删除电子案卷新
export function delAnjuan(id) {
  return request({
    url: '/system/eanjuan/' + id,
    method: 'delete'
  })
}
